package com.munoor.dalai.server.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the COMPANIES database table.
 * 
 */
@Entity
@Table(name="COMPANIES")
@NamedQueries({
	@NamedQuery(name = "Companies.findAll", query = "SELECT c FROM Company c"),
	@NamedQuery(name = "Companies.getCompanyCount", query = "SELECT COUNT(c) FROM Company c"),
	@NamedQuery(name = "Companies.findByCompanyId", query = "SELECT c FROM Company c WHERE c.companyId = :companyId")})
public class Company implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="COMPANY_ID")
	private Long companyId;

	@Column(name="COMPANY_NAME")
	private String companyName;

	@Column(name="LOCATION_ID")
	private String locationId;

	@Column(name="LONG_DESC")
	private String longDesc;

	@Column(name="SHORT_DESC")
	private String shortDesc;

    public Company() {
    }

	public long getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(long companyId) {
		this.companyId = companyId;
	}

	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getLocationId() {
		return this.locationId;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	public String getLongDesc() {
		return this.longDesc;
	}

	public void setLongDesc(String longDesc) {
		this.longDesc = longDesc;
	}

	public String getShortDesc() {
		return this.shortDesc;
	}

	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

}